import Vue from 'vue';
import Button from 'ant-design-vue/lib/button';
import 'ant-design-vue/dist/antd.css';
import App from './App';
import VueParticles from 'vue-particles'
import router from './config/router'
import {routerSkip} from './lib/utils'
import store from './config/store'
import apolloProvider from "./config/vue-apollo";


import {message, Modal} from "ant-design-vue";

Vue.prototype.$message = message;
Vue.prototype.$info = Modal.info;
Vue.prototype.$success = Modal.success;
Vue.prototype.$error = Modal.error;
Vue.prototype.$warning = Modal.warning;

import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor);


Vue.prototype.routerSkip = routerSkip;
Vue.prototype.$routerSkip = routerSkip;

Vue.use(VueParticles)
Vue.component(Button.name, Button);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  apolloProvider,
  render: h => h(App),
}).$mount('#app');
